package com.wpf.system.mapper;

import com.wpf.system.entity.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author ferna
* @description 针对表【user_role(用户关联角色表)】的数据库操作Mapper
* @createDate 2022-12-15 22:31:16
* @Entity com.wpf.system.entity.UserRole
*/
public interface UserRoleMapper extends BaseMapper<UserRole> {
    /**
     * 更新用户角色
     * @param uid 用户ID
     * @param ridList 角色ID集合
     * @return int
     */
    int saveUserRole(@Param("uid") Long uid , @Param("ridList") List<Long> ridList);
}




